FIne grained control over transactions in tests.

Fixed some table names.