calc unit test