fix oauth2 provider test