A structured test environment using mocha, sinon and chai that works in the browser and in Node.js