updating test_listener_sorts_by_priority Test
Fixing sorting problem