Add asserts when dropping a collection in teardown function.