test/bonding: fix memory corruptions