Test case for transaction preparation.