node.js Connect middleware to facilitate triggering server-side actions during end-to-end testing