tests: avoid comparing Interests with operator==

Refs: #4569
Change-Id: Ia75169c147976d3980dd113054ba560caf0f33c8
diff --git a/tests/daemon/table/pit.t.cpp b/tests/daemon/table/pit.t.cpp
index 99d23e7..ca9ac3c 100644
--- a/tests/daemon/table/pit.t.cpp
+++ b/tests/daemon/table/pit.t.cpp
@@ -319,8 +319,8 @@
   pit.insert(*interestABC1);
   BOOST_CHECK_EQUAL(pit.size(), 1);
   BOOST_CHECK(pit.begin() != pit.end());
-  BOOST_CHECK(pit.begin()->getInterest() == *interestABC1);
-  BOOST_CHECK((*pit.begin()).getInterest() == *interestABC1);
+  BOOST_CHECK(&pit.begin()->getInterest() == interestABC1.get());
+  BOOST_CHECK(&(*pit.begin()).getInterest() == interestABC1.get());
 
   auto i = pit.begin();
   auto j = pit.begin();