add test cancelled event handling