Port authorizationCode exchange test cases to Mocha.