added oauth2 resource tests