Modify oauth2 tests to comply with AGJS-120