add test and move one from rm to rmi

test for ##8368
Meant `out`