add test and move one from rm to rmi

Signed-off-by: Victor Vieux <vieux@docker.com>
update test

Signed-off-by: Victor Vieux <vieux@docker.com>
Merge pull request #8369 from vieux/add_test_rm

add test and move one from rm to rmi