cleaned up test_getEventsAsAsuraFormat() with a helper method.