Test fixed

Yeah, it was a problem with the test itself. My trig util functions were
converting from degrees to radians. The integral of sine in degrees is
not negative cosine. That only works in radians.