Added test case for refreshAuthentication()