fire job failed event when it fails all retries
[tests] add job failed functional event test