Takes SQLite BEGINs into account in TransactionTestCases.