XD-2114: Job stuck in "deploying" state when no containers are available

Introduced a new test for job state transitions.

Modified `JobDeploymentListener` to ensure that job state is correctly updated if a job deployment fails due to the lack of containers.