Allow injecting listener classes
Add setup/teardown listener test case