Migrate test cases to Mocha