Remove unneeded parentheses around typecasts
Add test for PlanDFT()