peek: add --hop-limit option

Change-Id: I1d0179f498ce70166085e6934e015ff4c00b4858
diff --git a/tests/peek/ndnpeek.t.cpp b/tests/peek/ndnpeek.t.cpp
index f144d5a..3d72664 100644
--- a/tests/peek/ndnpeek.t.cpp
+++ b/tests/peek/ndnpeek.t.cpp
@@ -154,7 +154,8 @@
   BOOST_CHECK_EQUAL(face.sentInterests.back().getMustBeFresh(), false);
   BOOST_CHECK_EQUAL(face.sentInterests.back().getForwardingHint().empty(), true);
   BOOST_CHECK_EQUAL(face.sentInterests.back().getInterestLifetime(), DEFAULT_INTEREST_LIFETIME);
-  BOOST_CHECK_EQUAL(face.sentInterests.back().hasApplicationParameters(), false);
+  BOOST_CHECK(face.sentInterests.back().getHopLimit() == nullopt);
+  BOOST_CHECK(!face.sentInterests.back().hasApplicationParameters());
   BOOST_CHECK(peek->getResult() == NdnPeek::Result::DATA);
 }
 
@@ -164,6 +165,7 @@
   options.canBePrefix = true;
   options.mustBeFresh = true;
   options.interestLifetime = 200_ms;
+  options.hopLimit = 64;
   initialize(options);
 
   auto data = makeData(Name(options.name).append("suffix"));
@@ -184,7 +186,8 @@
   BOOST_CHECK_EQUAL(face.sentInterests.back().getMustBeFresh(), true);
   BOOST_CHECK_EQUAL(face.sentInterests.back().getForwardingHint().empty(), true);
   BOOST_CHECK_EQUAL(face.sentInterests.back().getInterestLifetime(), 200_ms);
-  BOOST_CHECK_EQUAL(face.sentInterests.back().hasApplicationParameters(), false);
+  BOOST_CHECK(face.sentInterests.back().getHopLimit() == 64);
+  BOOST_CHECK(!face.sentInterests.back().hasApplicationParameters());
   BOOST_CHECK(peek->getResult() == NdnPeek::Result::DATA);
 }