[Sprint: 37] 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.
Need to comment this method... i.e. Verifies that the file exists and that the file had at least one line.