unit test for commission