added tests, and fixed dst of DFT