tests: simplify test_goal_upgrade_all() somehwat.

... by having a varag function to test list contents.