test cases for parse to command