fix test on jobs, because of previous test on maintenance mode, quartz takes more time at this moment of the test, added a waituntil instead of a thread.sleep