More stringent checking for mocha.