fixed broken test for events.off