adjusted fft_test to produce output which will then be compared to matlab