diff --git a/apps/cli/executables/pexable/casa_envoy/test/test_foundation.py b/apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
index 5cd788ee40647edf24bc19eec0cdd4154d7d1488..38ff68fba663985dfb4ef606b56400a1513d5df6 100644
--- a/apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
+++ b/apps/cli/executables/pexable/casa_envoy/test/test_foundation.py
@@ -78,6 +78,19 @@ class TestGeneralFoundation:
         general.data_foundation()
         assert mock_copy.call_count == 2
 
+    @patch("pathlib.Path.glob", return_value=["TSKY0001_split.flagtargetstemplate.txt"])
+    @patch("pathlib.Path.exists", return_value=True)
+    @patch("shutil.copy")
+    def test_general_copy_into_rawdata(self, mock_copy, mock_exists, mock_glob):
+        general.copy_into_rawdata()
+        assert mock_exists.call_count == 1
+        assert mock_copy.call_count == 1
+        assert mock_glob.call_count == 1
+
+        # Ensure copy was called on the expected files
+        rawdata_dir_path = Path('/lustre/aoc/cluster/pipeline/docker/workspaces/spool/tmpo1ca1pp_/rawdata')
+        mock_copy.assert_any_call("TSKY0001_split.flagtargetstemplate.txt", rawdata_dir_path)
+
 
 class TestRestoreFoundation:
     """