changed mocha test generator