fixed mocha snippets