     base_64_encoded = Base.encode64("#{username}:#{password}")
     assert base_64_encoded == "QXV0aDpUZXN0"
 
-    request = BasicClientPlugOptions.get("/basic-auth")
+    {:ok, request} = BasicClientPlugOptions.get("/basic-auth")
     auth_header = Tesla.get_header(request, "authorization")
 
     assert auth_header == "Basic #{base_64_encoded}"

    base_64_encoded = Base.encode64(":")
    assert base_64_encoded == "Og=="

    request = BasicClient.client() |> BasicClient.get("/basic-auth")
    auth_header = Tesla.get_header(request, "authorization")

    assert auth_header == "Basic #{base_64_encoded}"

    base_64_encoded = Base.encode64("#{username}:#{password}")
    assert base_64_encoded == "QWxhZGRpbjpPcGVuU2VzYW1l"

    {:ok, request} = BasicClient.client(username, password) |> BasicClient.get("/basic-auth")
    auth_header = Tesla.get_header(request, "authorization")

    assert auth_header == "Basic #{base_64_encoded}"
