build: decouple handling of boost libs not needed by libndn-cxx

Refs: #5210
Change-Id: Ia8e3d80dd92b5e8a7bd7d79ea811332220a883ed
diff --git a/tests/wscript b/tests/wscript
index d7401ca..2d83303 100644
--- a/tests/wscript
+++ b/tests/wscript
@@ -8,7 +8,7 @@
                 source=bld.path.ant_glob('*.cpp'),
                 features='pch',
                 headers='tests-pch.hpp',
-                use='ndn-cxx BOOST')
+                use='BOOST_TESTS ndn-cxx')
 
     bld.recurse('benchmarks')
     bld.recurse('integration')