Refactor tests
Refresh token when session expires