added tests for OAuth