Fix CouchDB tests because of change to use mapper class