Transaction controller tests and bug fixes.