Added some test for checking the rebuilding of the original function based on the DFT's result.