update tests for unregistering all events and once events