token refresh and php test