fix bug setting couchdb url from options, test http