Avoids showing the new document window when running XCTests.