[TEST] Actualizing ignored Quartz test

What was done:
1) fixed the ignored test
2) fixed the code that made the test fail. Without the line added the test
hanged when there were jobs with end date set