diff --git a/pkgs_envsetup.py b/pkgs_envsetup.py
index a861c8151db7699a2dc6ac694c94bacf1d62f2a1..b7326cbdbca7d23ab0374bc8b3ee743d26992878 100755
--- a/pkgs_envsetup.py
+++ b/pkgs_envsetup.py
@@ -4,12 +4,14 @@ from subprocess import run, DEVNULL, PIPE, STDOUT
 
 PACKAGES = [
     "bsd-mailx",  # for "mail" command used in tester
-    "python3-defusedxml",
-    "python3-openssl",
-    "python3-psutil",
-    "python3-pydbus",
-    "python3-requests",
-    "python3-spf",
+    "python3-defusedxml",  # for: test_wowza
+    "python3-dnspython",  # for: test_caches
+    "python3-openssl",  # for: test_ssl
+    "python3-psutil",  # for: test_wowza
+    "python3-psycopg2",  # for: test_postgresql
+    "python3-pydbus",  # for: test_dns_records
+    "python3-requests",  # for: test_nginx_status, test_nginx_vhosts, test_ssl, test_apt_proxy, test_ubicast_packages_access
+    "python3-spf",  # for: test_email
 ]
 
 
diff --git a/tests/test_dns_records.py b/tests/test_dns_records.py
index b92d36873fb82908944886946c8e6913c7e058ae..69dd51e6a460ab100233c4b5b0319d56844b8ec7 100755
--- a/tests/test_dns_records.py
+++ b/tests/test_dns_records.py
@@ -12,8 +12,8 @@ import sys
 
 try:
     import pydbus
-except:
-    pass
+except ImportError:
+    exit(2)
 
 sys.path.append(str(Path(__file__).parents[1].resolve()))