add unit test for commnd