Improve karma-mocha plugin