Added tests for RegularLightSpectrum, bugfixes, minor refactoring