testing spectrogram function