Example Tests

- Switch to `EngineFactory` from deprecated `IEngineFactory`
- Implement tests in template skeleton.

Closes #5
diff --git a/build.sbt b/build.sbt
index eed327e..7615d32 100644
--- a/build.sbt
+++ b/build.sbt
@@ -9,4 +9,8 @@
 libraryDependencies ++= Seq(
   "org.apache.predictionio" %% "apache-predictionio-core" % "0.10.0-incubating" % "provided",
   "org.apache.spark"        %% "spark-core"               % "1.3.0" % "provided",
-  "org.apache.spark"        %% "spark-mllib"              % "1.3.0" % "provided")
+  "org.apache.spark"        %% "spark-mllib"              % "1.3.0" % "provided",
+  "org.scalatest"           %% "scalatest"                % "2.2.1" % "test")
+
+// SparkContext is shared between all tests via SharedSingletonContext
+parallelExecution in Test := false
\ No newline at end of file