Adds format and basic integration test for transactions.

- @gtrogers