Simplifying the use of mocks with Node.js