Added tests for route listener feature