Add a test that ensures that taskprocessor listener callbacks