No longer need SERVER_NAME in tests.
Test token refresh. Test coverage up to 82%.