Testing of optical properties of lenses