There was no functional test covering the null output validation in NormalizeOutputs() at rawtransaction_util.cpp:88.
This adds an assert_raises_rpc_error check to the existing invalid outputs block in rpc_rawtransaction.py, verifying that passing a null output raises RPC error -8 with the expected message: Invalid parameter, output argument must be non-null.
The test passes with the expected error message, and changing the expected message makes it fail, confirming that the assertion is actually being executed.
Validated by running rpc_rawtransaction.py successfully.