tests, old functions, spectrogram