test_events: fix testing bug