diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 51e775843f2c460a5105ac627b208cd40ff53506..2871cf7932e603bd5f4e854ac2a1bb60639250e1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -158,8 +158,11 @@ integration_pe:
       - Q-Y5JA_multiqc_data.json
     expire_in: 7 days
 
-consistency_se:
+consistency:
   stage: consistency
   script:
-  - echo "TEST"
+  - grep -m 1 \"Assigned\":.[0-9] 16-1ZX4_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedSE.txt
+  - grep -m 1 \"Assigned\":.[0-9] Q-Y5JA_multiqc_data.json | grep -oe '\([0-9.]*\)' > assignedPE.txt
+  - pytest -m consistencySE
+  - pytest -m consistencyPE
 
diff --git a/workflow/tests/test_consistency.py b/workflow/tests/test_consistency.py
new file mode 100644
index 0000000000000000000000000000000000000000..4526aa9d8877403b3aa0be1f0dea6bb6e447ccf2
--- /dev/null
+++ b/workflow/tests/test_consistency.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+
+import pytest
+import pandas as pd
+from io import StringIO
+import os
+
+test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
+                '/../../'
+test_sampleSE = '16-1ZX4'
+test_assignededSE = '7742416'
+test_samplePE = 'Q-Y5JA'
+test_assignedPE = '2599149'
+
+@pytest.mark.consistencySE
+def test_consistencySE():
+    assert os.path.exists(os.path.join(test_output_path, test_sampleSE, '_multiqc_data.json'))
+    assert readAssigned("assignedSE.txt",test_assignedSE)
+
+@pytest.mark.consistencyPE
+def test_consistencyPE():
+    assert os.path.exists(os.path.join(test_output_path, test_samplePE, '_multiqc_data.json'))
+    assert readAssigned("assignedPE.txt",test_assignedPE)
+
+def readAssgned(assignedFile,assigned):
+    data = False
+    file = open(assignedFile, "r")
+    line = file.readline()
+    if line.strip() == assigned:
+        data = True
+
+    return data