app/testpmd: fix metadata API and Tx insertion