Added unit tests based on MRUnit, JUnit, and ScalaTest.