Fix tests on CouchDB 1.2.0