correct typo and write unit test for new command