Few bugfixes all over the Schedulers.
TaskQueue changed to PriorityQueue.
Tests added.