Part of #36692.
blockpolicyestimator_tests: Replace the transaction template, whose prevout index was overwritten to make each txid unique, with make_tx(), which constructs each transaction with COutPoint, CTxIn and CTxOut constructor calls.
Move the code that submits a transaction to the estimator, which was repeated in three places, into add_tx(). Each transaction is now built once and shared between its mempool entry and the estimator. The transactions submitted to the estimator and its estimates are unchanged.
mempool_fee_estimator_tests: Construct the input and output of MakeRandomTx() in place instead of resizing the vectors and assigning each field afterwards. Apart from the random prevout hash, the transaction is identical to before.