Yes, you can try this with the following diff:
0diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
1index d316c4b602..708e4d7e8f 100755
2--- a/test/functional/p2p_segwit.py
3+++ b/test/functional/p2p_segwit.py
4@@ -1663,6 +1663,7 @@ class SegWitTest(BitcoinTestFramework):
5 pubkeyhash = hash160(pubkey)
6 script_pkh = key_to_p2wpkh_script(pubkey)
7 tx = CTransaction()
8+ tx.nLockTime = 0xffffffff
9 tx.vin.append(CTxIn(COutPoint(temp_utxos[0].sha256, temp_utxos[0].n), b""))
10 tx.vout.append(CTxOut(temp_utxos[0].nValue, script_pkh))
11 tx.wit.vtxinwit.append(CTxInWitness())
To add a test, you may have to disable the locktime by setting the sequence number to the right value as well.
I am happy to push a commit that adds a test, if someone writes one.