fix OAuthResource for OAuthResourceTest