implemented unit test for calculate commission