fixed tests for calculus