Use TransactionTestCase, not TestCase

This fixes about 30 of the MySQL-related test failures.