Added tests for TransactionTrait.