fixed TestListeners test code