Fix of test (do not use sleep which is incorrect with EventLoop)