test added for method onJobDone.