add tests for NDFT