Changing setImmediate to process.nextTick for Node v0.8 compatibility in tests/pipeworks_test.js