added integration tests for CouchDBDocument