test EventContext.off function