[test] Avoid reading a potentially uninitialized variable in tx_invalid-test