Report an error when CouchDB isn't reachable
Add a test in case of unreachable couchdb server.