Added unit tests for lcm and Rational.