Added tests to ensure proper BasicAuth handling

Test to verify BasicAuth works correctly