[SPARK-3490] Disable SparkUI for tests (backport into 1.1)

Original PR: #2363