fix transaction_repo and tests