prepareTransactionTest