Port test cases to mocha.
Port test cases to mocha.