Fixed mocha hook