add command file and test cases