Added Junit test cases for Rational and RationalGUI