adding integration tests for couchdb view