converts to mocha test (#2)