tests: resolve ASan error in ManagementTool tests

resolve unused lambda capture errors in newer versions of clang

Change-Id: If03c0a8387ddc35f9999dfbdd3ba474e4387b01b
diff --git a/tests/unit/clients/iterative-query-controller.cpp b/tests/unit/clients/iterative-query-controller.cpp
index 65ab32b..3f51baa 100644
--- a/tests/unit/clients/iterative-query-controller.cpp
+++ b/tests/unit/clients/iterative-query-controller.cpp
@@ -91,7 +91,7 @@
       hasDataBack = true;
       BOOST_CHECK(true);
     },
-    [&hasDataBack] (uint32_t errCode, const std::string& errMsg) {
+    [] (uint32_t errCode, const std::string& errMsg) {
       BOOST_CHECK(false);
     },
     consumerFace);
diff --git a/tests/unit/mgmt/management-tool.cpp b/tests/unit/mgmt/management-tool.cpp
index 040bf38..e4ce0c5 100644
--- a/tests/unit/mgmt/management-tool.cpp
+++ b/tests/unit/mgmt/management-tool.cpp
@@ -61,9 +61,7 @@
       copyDir(current, destination / current.filename());
     }
     else {
-      // cannot use fs::copy_file, see https://svn.boost.org/trac/boost/ticket/10038
-      // fs::copy works, as it doesn't use problematic private API
-      copy(current, destination / current.filename());
+      copy_file(current, destination / current.filename());
     }
   }
 }