adding a listener to track functional test errors