Added tests for basic auth.