Add basic unit test for Yarn local: support.

I had to modify ClientBase::sparkJar to also check
System.getProperty(), so that the test can override
the location of the spark jar (and avoid having
SparkContext.jarOfClass(...).head throw an exception).