Add BasicAuth test.
Merge basic-auth branch