Add pagination and tests to transactions.