improve couchdb test