Cancel event in test