Added a test for handling an error case upon deleting a job