Port test cases to mocha.