testing forward and inverse FFT