Convert to mocha test cases