Test that container removes don't crash when they are the last retain