MDL-43044 events: Remove code duplication from instances_list_viewed events
MDL-43044 events: Add unit tests for instances_list_viewed abstract event