Add tests for mathUtils::integrate