tests: dump_packagelist() can free the list too.
wip