lib/transaction: fix tests