updated test cases for couchdb