added integration test for CouchDBDocument