Add testCompare method in CalculatorTest class