Fix tests. Fix deafen to properly remove the event listener.