Added a test for addListener support