How to test for absorption spectra