More test suite porting to Mocha.
Implement support for OAuth 2.0 failure info.