fix event_test for edge case