Port token test cases to Mocha.