TestAdsScreenshotComparison Small refactoring.