Reduce unnecessary includes in common.hpp

Also, make Decryptor::doDecrypt() static

Refs: #4755
Change-Id: I21b05897e31fc98697b60b7305ac865962e699c4
diff --git a/tests/unit/encryptor.t.cpp b/tests/unit/encryptor.t.cpp
index 02ae88b..ebfb89c 100644
--- a/tests/unit/encryptor.t.cpp
+++ b/tests/unit/encryptor.t.cpp
@@ -24,6 +24,7 @@
 #include "tests/unit/static-data.hpp"
 
 #include <ndn-cxx/security/signing-helpers.hpp>
+#include <ndn-cxx/security/validator-null.hpp>
 #include <ndn-cxx/util/dummy-client-face.hpp>
 #include <ndn-cxx/util/string-helper.hpp>
 
@@ -91,7 +92,7 @@
 
 public:
   util::DummyClientFace face;
-  ValidatorNull validator;
+  security::ValidatorNull validator;
   Encryptor encryptor;
   util::Signal<EncryptorFixture, ErrorCode, std::string> onFailure;
 };