unit test which shows a risky deadlock situation at Scheduler class
make Scheduler getCurrentTime less risky for deadlocks