Added tests and moved necessary functions into clj-spark.set