common/PrioritizedQueue: add basic tests for it

i will add more of them later on to test 

1. the ability to avoid starvation of items with cost higher than the token per bucket
2. the ability to avoid starvation due to a burst of extreme-cost items
3. and some corner cases.