Test JavaScript with Karma, Mocha, Chai and Sinon.JS