Add a test for glitch detection across the range of frequencies and at different points in the sine wave.
Tune the glitch detection parameters.