Fixing OauthProvider and OAuthProviderTest