Molecules in the cold environment of a supersonic free-jet beam: from spectroscopy of neutral–neutral interactions to a test of Bell's inequality