Fix login in token manager tests.