Support basic auth parameters
add some more tests