Make performRefactoring test helper schedule the refactoring with a buildRule rather than just perform without concurrency protection in the UI thread. Hope this eliminates one more source of 'random' test failures.