Commit transactions outside of tested function