CDAP-654: Add a unit test which tests Services integration with MapReduce

@rohitsinha54 please review
@rohitsinha54 I have refactored setup method to avoid code duplication