Fixed Karma & Mocha tests