add mocked tests on callCouchDB