TST: add test cases for ignorecommand