mocha test generation considers environment