Fix basic auth code, add real url test.