tests: Fix compilation errors because of changes ndn-cxx library

Change-Id: I10fb7eb366a03c2e06e6d2efefdde8a9dd0da724
Refs: #2951
diff --git a/tests/core/segment-publisher.t.cpp b/tests/core/segment-publisher.t.cpp
index e0f8e40..b72c198 100644
--- a/tests/core/segment-publisher.t.cpp
+++ b/tests/core/segment-publisher.t.cpp
@@ -73,7 +73,7 @@
     size_t totalLength = 0;
     for (int64_t i = 0; i < N; i++)
       {
-        totalLength += ndn::prependNonNegativeIntegerBlock(outBuffer, tlv::Content, i);
+        totalLength += prependNonNegativeIntegerBlock(outBuffer, tlv::Content, i);
       }
     m_totalPayloadLength += totalLength;
     return totalLength;
diff --git a/tests/core/simple-notification.hpp b/tests/core/simple-notification.hpp
index 64057e3..aad86e6 100644
--- a/tests/core/simple-notification.hpp
+++ b/tests/core/simple-notification.hpp
@@ -53,10 +53,7 @@
   wireEncode() const
   {
     ndn::EncodingBuffer buffer;
-    ndn::prependByteArrayBlock(buffer,
-                               0x8888,
-                               reinterpret_cast<const uint8_t*>(m_message.c_str()),
-                               m_message.size());
+    prependStringBlock(buffer, 0x8888, m_message);
     return buffer.block();
   }