remove spectral lines test method