Remove genChallengeInfo and add genSelectParamsJson and genValidateParamsJson

Change-Id: Ic389fcaf52a713ff5b0fefe7025a5630d7b0f7cc
diff --git a/tests/unit-tests/challenge-pin.t.cpp b/tests/unit-tests/challenge-pin.t.cpp
index 6960162..41924c3 100644
--- a/tests/unit-tests/challenge-pin.t.cpp
+++ b/tests/unit-tests/challenge-pin.t.cpp
@@ -141,7 +141,7 @@
   auto requirementList = challenge.getSelectRequirements();
   BOOST_CHECK_EQUAL(requirementList.size(), 0);
 
-  auto json = challenge.genChallengeInfo("_SELECT", ChallengeModule::WAIT_SELECTION, requirementList);
+  auto json = challenge.doGenSelectParamsJson(ChallengeModule::WAIT_SELECTION, requirementList);
   BOOST_CHECK_EQUAL(json.empty(), true);
 }
 
@@ -154,7 +154,7 @@
   requirementList.clear();
   requirementList.push_back("123");
 
-  auto json = challenge.genChallengeInfo("_VALIDATE", ChallengePin::NEED_CODE, requirementList);
+  auto json = challenge.doGenValidateParamsJson(ChallengePin::NEED_CODE, requirementList);
   BOOST_CHECK_EQUAL(json.empty(), false);
   BOOST_CHECK_EQUAL(json.get<std::string>(ChallengePin::JSON_PIN_CODE), "123");
 }