Fix witness_set_properties

Add a helper function to create the transaction for witness_set_properties.