test shifting functionality with Fourier transform