Fix tests that leaked couch instances.
Fix couchdb requirement.