Port token grant test cases to Mocha.