add test and move one from rm to rmi

test for ##8368
I prefer to check error output also, there is at least one test which checks just `err == nil` and it catches just wrong command spelling.