Added a test for priority updates.
Reinitializes pseudorandom number generator for each test.