Change SendFailedJobNotification(), add tests for it.