Add tests for math::lcm