consumer: give correct info to the application on hello

tests: add boost check on hello data

refs: #4703, #4693

Change-Id: I583584eb5a4b72fb1f7797bd8960109857c54162
diff --git a/tests/test-partial-sync.cpp b/tests/test-partial-sync.cpp
index 99fe0c1..8061194 100644
--- a/tests/test-partial-sync.cpp
+++ b/tests/test-partial-sync.cpp
@@ -57,7 +57,7 @@
                       [&, id] (const vector<Name>& availableSubs)
                       {
                         numHelloDataRcvd++;
-                        checkSubList(availableSubs);
+                        BOOST_CHECK(checkSubList(availableSubs));
 
                         checkIBFUpdated(id);
 
@@ -94,10 +94,8 @@
   checkSubList(const vector<Name>& availableSubs)
   {
     for (const auto& prefix : producer->m_prefixes ) {
-      for (const auto& sub : availableSubs) {
-        if (prefix.first != sub) {
-          return false;
-        }
+      if (std::find(availableSubs.begin(), availableSubs.end(), prefix.first) == availableSubs.end()) {
+        return false;
       }
     }
     return true;