ensure the collection is initialized before unwrapping
ported some tests for cascading from CouchDB ODM