Refactoring in TransactionsTests