tests for adding listeners