Added test that event listeners are only added once