remove the wait for event in the test because it might happen that the event is already finished when we wait it