add test for CommandType