[feature/event-exporter-tests] Fix missing $vars line
[feature/event-exporter-tests] Grab name of events with a function
[feature/event-exporter-tests] Move grabbing the $vars array line to a method