modularise testing with mocha