fix bug with setting couchb url, test for http