Bring TestTransaction closer to being a unit test.