Quantum optics for fundamental tests and applications