fix: restoring URLs should now work as expected within the login_ctx manager
adjust the test case to match the login_ctx manager changes