add test and move one from rm to rmi

test for ##8368
I'm okay with 
```
!strings.Contains(err.Error(), "failed to remove one or more containers")
```