tests: fix --random_activity_priority option

It was broken since commit fda3f0933287a51fd4da2f7baf4d50acd8cc2f71
("Move some work out of Message.__init__").