fixes tests failing for node 0.8 because setImmediate not defined