Improve test for local transactions.