Fixed mocha tests for Travis-CI