Simplify priority computation in tests + improve exhaustivity
We no longer need to deal with ratios, so let's count the objects
directly instead.
Plus, the existing tests did not check tasks with None priority
(because they did not have access to it when ratios were given
by the backend), so they do now.