Added test code for some simple maths functions