Fix tests

It seems that the tests assume we can keep opening UI ports. Our
existing default for spark.ports.maxRetries does not tolerate this,
however, so the test process throws an exception and returns exit
code 1.