Test and fix search_events.