Merge "Allow tests to change UiAutomation flags." into nyc-dev