ResourcePool: If object replacement fails, remember that we're missing one.

It wasn't actually doing anything (you need to pass the object that you want to verify). Most of the tests were already verifying the object, but testResourceFailed wasn't, and I fixed that one.