some tweaks, added tests for dfts