Add new stat for cancelled event pipelines. Another attempt to fix unit tests.