JBPM-4066 - Fix/improve tests for ht deadlines, timer and runtime manager that fails randomly on jenkins