auto testing with mocha