Use format_callback() in the Event class and modify the unit test to include it.