Maths tests
Refactor some tests into separate files