Ensure part_of_a_transaction only runs in tests
#159
Merged
part_of_a_transaction only runs in tests
#159