Added unit tests for the calculator