modify test (replace to setImmediate)