Testing multi-tiered node.js app