It's useful to have an end-to-end test in addition to the unit test to sanity check the RPC error as well as making sure the transaction is otherwise fully standard.
signrawtransactionwithkey
.sha256
.txid_int
.getwtxid()
wtxid_hex
.rehash()
.calc_sha256()