Avoid deprecated ndn-cxx functions

Change-Id: I763368c2ea12902b4ea400f92c23b17ad5a5628e
diff --git a/tests/test-hello-protocol.cpp b/tests/test-hello-protocol.cpp
index 08adc02..efd8eac 100644
--- a/tests/test-hello-protocol.cpp
+++ b/tests/test-hello-protocol.cpp
@@ -129,10 +129,10 @@
                 Adjacent::STATUS_INACTIVE, 0, 300);
   adjList.insert(adj1);
 
-  ndn::Name dataName = adj1.getName() ;
-  dataName.append(nlsr::HelloProtocol::NLSR_COMPONENT);
-  dataName.append(nlsr::HelloProtocol::INFO_COMPONENT);
-  dataName.append(conf.getRouterPrefix().wireEncode());
+  ndn::Name dataName = adj1.getName();
+  dataName.append(HelloProtocol::NLSR_COMPONENT);
+  dataName.append(HelloProtocol::INFO_COMPONENT);
+  dataName.append(ndn::tlv::GenericNameComponent, conf.getRouterPrefix().wireEncode());
 
   ndn::Data data(ndn::Name(dataName).appendVersion());
   BOOST_CHECK_EQUAL(numOnInitialHelloDataValidates, 0);