Use the AuthToken function rather than getting the attribute directly.
More tests.