Ouath2: added a test case for oauth2 provider level error