Reimplement CouchClient tests