diff --git a/test/test_legacy_survey_generation.py b/test/test_legacy_survey_generation.py
index 71781d215683556e1ef0b50e029847009c8882f7..5504deabb82c9cbfa6c63d108528d5b055c62cb1 100644
--- a/test/test_legacy_survey_generation.py
+++ b/test/test_legacy_survey_generation.py
@@ -29,11 +29,7 @@ def org_data(question):
     nren3,KU,Technical centre
     nren3,VDU,Technical centre
     nren3,VU,Technical centre
-    nren3,org_data
-org_data
-org_data
-org_data
-org_dataKTU,"NOC, administrative authority"
+    nren3,KTU,"NOC, administrative authority"
     """
 
     if question == OrgQuestion.PARENT_ORG_NAME:
@@ -122,7 +118,6 @@ org_dataKTU,"NOC, administrative authority"
 
 
 def setup_survey_db(app_with_survey_db, mocker):
-    global org_data
 
     def get_rows_as_tuples(*args, **kwargs):
         return [
diff --git a/test/test_survey_publisher_old_db_2022.py b/test/test_survey_publisher_old_db_2022.py
index ed5e2e5f5fb5c9c1bcff9484e3b49f9e56bc8d3d..8aabd7733faf8d9253c52953bc19f2659a238bdb 100644
--- a/test/test_survey_publisher_old_db_2022.py
+++ b/test/test_survey_publisher_old_db_2022.py
@@ -18,11 +18,7 @@ def org_data(question):
     nren3,KU,Technical centre
     nren3,VDU,Technical centre
     nren3,VU,Technical centre
-    nren3,org_data
-org_data
-org_data
-org_data
-org_dataKTU,"NOC, administrative authority"
+    nren3,KTU,"NOC, administrative authority"
     """
 
     if question == OrgQuestion.PARENT_ORG_NAME:
@@ -111,7 +107,6 @@ org_dataKTU,"NOC, administrative authority"
 
 
 def test_publisher(app_with_survey_db, mocker):
-    global org_data
 
     def get_rows_as_tuples(*args, **kwargs):
         return [