(#802) changed tests to couchdb api and implemented http adapter