Add support for multiple event types to assertEvent().