add unit test for command info