test(JobState.Failed): Add tests to check the failed state for a job.