integration test with couchdb