Update event_tests to better manage pointers.