Convert to mocha tests