Add some tests to cover do_transaction

Took some maneuvering, but there's some more code coverage for the various
functions in GlobalCollectAdapter now, via the test adapter.

Change-Id: Ib61e231cc84bb497a9dc5c9be7faaf75eb73550d
Merge "Add some tests to cover do_transaction"