refine test for token refresh