[test suite] AFL update spa-pkts.sh to use new shared bash functions