fixed a bug in the integral thunk
Changed some of the test functions