#60 convert search tests to events/callbacks