Nit: it seems that  in this test `setTimeout` is used only as substitute of `setImmediate`: now that we have `setImmediate`, instead of requires both, we could use it everywhere.