Bug 701634, Make flaky tests wait for transactions to complete before continuing to the next test