updated unit test for class Calc.