put token refresh code under test
refactor token refresh to idonethis client
test reorganization