:green_heart: fix unit test
diff --git a/tests/src/unit-bon8.cpp b/tests/src/unit-bon8.cpp
index 6953adf..bf3e99c 100644
--- a/tests/src/unit-bon8.cpp
+++ b/tests/src/unit-bon8.cpp
@@ -31,6 +31,9 @@
 
 #include <nlohmann/json.hpp>
 using nlohmann::json;
+#ifdef JSON_TEST_NO_GLOBAL_UDLS
+using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
+#endif
 
 #include <iostream>
 #include <fstream>
diff --git a/tests/src/unit-bson.cpp b/tests/src/unit-bson.cpp
index fa07e9d..a231c8c 100644
--- a/tests/src/unit-bson.cpp
+++ b/tests/src/unit-bson.cpp
@@ -10,9 +10,6 @@
 
 #include <nlohmann/json.hpp>
 using nlohmann::json;
-#ifdef JSON_TEST_NO_GLOBAL_UDLS
-using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
-#endif
 
 #include <fstream>
 #include <sstream>