add test for OAuthResource