[PATCH 5.13 542/800] tc-testing: fix list handling