Fixed mocha tests.