Fixed the tests. Added maths tests.