Tests for the transaction building prepare and sign code.