Fixed an issue in the PrioritySchedulerStatisticTracker where low priority tasks can cut in queue
This was an old issue that was fixed in the PriorityScheduler, but apparently there was still a small issue with it when using the PrioritySchedulerStatisticTracker.
I also added a unit test to cover this functionality (which also discovered the issue).