Added test for event listener priority.