test code for fft