adds tests for using  procs and lambdas as listeners