fix tests for addListener