update tests for new version of oauth2