How to reuse test code the right way with MochaJS.