Unit test for math class.