testing discrete Fourier transform (DFT)