Add tests for BasicAuth