test: avoid package agent ordering assumption (#1283)