Tests for event listeners