Fix class specifier and other typos.
Pack main.
Add test tuple.
Bring TestTransaction closer to being a unit test.