add tests for CouchDBDocument
update CouchDBDocument tests
fix tests