a bit of code cleanup, and a new test case with 10 harmonics