Add tests for the MathFunctions object