add test and move one from rm to rmi

test for ##8368
@vieux can you change `err == nil` to `err == nil || !strings.Contains(err.Error(), "No such container: unknown")` ?