Added basic unittests for MapReduce