Add unit test for event type filtering