Add tests for ensuring that listeners are added