tests: avoid deprecated boost headers

Change-Id: I05aa8d5fd22843415db09478f7b53f1810b38db3
diff --git a/tests/unit/util/logging.t.cpp b/tests/unit/util/logging.t.cpp
index b8034b8..8bbc638 100644
--- a/tests/unit/util/logging.t.cpp
+++ b/tests/unit/util/logging.t.cpp
@@ -25,7 +25,11 @@
 #include "tests/boost-test.hpp"
 #include "tests/unit/unit-test-time-fixture.hpp"
 
+#if BOOST_VERSION >= 105900
+#include <boost/test/tools/output_test_stream.hpp>
+#else
 #include <boost/test/output_test_stream.hpp>
+#endif
 
 namespace ndn {
 namespace util {