All Scala code used to test Spark