Bug 8435: (follow-up) use a transaction for unit tests