diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 60a430b8ca42df54100f950d9e52cf3daafda7a8..93373d2402cb10e9be5acbddf84e5b5e75f55e95 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,13 +12,13 @@ user_configuration:
   stage: unit
   script:
   - pytest -m unit
+  -pytest -m unit --cov=./workflow/scripts
 
 single_end_mouse:
   stage: integration
   script:
   - nextflow run workflow/main.nf -resume
   - pytest -m singleend
-  - pytest --cov=./workflow/scripts
   artifacts:
     expire_in: 2 days
 
@@ -27,7 +27,6 @@ paired_end_human:
   script:
   - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_ENCSR729LGA_PE.txt" --genome 'GRCh38' --pairedEnd true -resume
   - pytest -m pairedend
-  - pytest --cov=./workflow/scripts
   artifacts:
     expire_in: 2 days
 
@@ -36,7 +35,6 @@ single_end_diff:
   script:
   - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_SE.txt" --genome 'GRCm38' -resume
   - pytest -m singlediff
-  - pytest --cov=./workflow/scripts
   artifacts:
     expire_in: 2 days
 
@@ -45,6 +43,5 @@ paired_end_diff:
   script:
   - nextflow run workflow/main.nf --designFile "$CI_PROJECT_DIR/test_data/design_diff_PE.txt" --genome 'GRCh38' --pairedEnd true -resume
   - pytest -m paireddiff
-  - pytest --cov=./workflow/scripts
   artifacts:
     expire_in: 2 days
diff --git a/workflow/tests/test_annotate_peaks.py b/workflow/tests/test_annotate_peaks.py
index e3f5746c3087e2d0f8eb97dc7f0050994270000d..13813505403067eadce9d9c31f6c26b4ae210f2e 100644
--- a/workflow/tests/test_annotate_peaks.py
+++ b/workflow/tests/test_annotate_peaks.py
@@ -16,7 +16,7 @@ def test_annotate_peaks_singleend():
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC.chipseeker_upsetplot.pdf'))
     annotation_file = test_output_path + 'ENCSR238SGC.chipseeker_annotation.csv'
     assert os.path.exists(annotation_file)
-    assert utils.count_lines(annotation_file) == 152840
+    assert utils.count_lines(annotation_file) == 149820
 
 
 @pytest.mark.pairedend
diff --git a/workflow/tests/test_motif_search.py b/workflow/tests/test_motif_search.py
index 182a6206db0b2701242780db1f7011518b4ac697..09b4ca949df62603f68807bc016b076f9baff68f 100644
--- a/workflow/tests/test_motif_search.py
+++ b/workflow/tests/test_motif_search.py
@@ -12,7 +12,7 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
 
 @pytest.mark.singleend
 def test_motif_search_singleend():
-    assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC.fa'))
+    assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'ENCSR238SGC.fa'))
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'index.html'))
     peak_file_ENCSR238SGC = test_output_path + 'ENCSR238SGC.600.narrowPeak'
     assert os.path.exists(peak_file_ENCSR238SGC)
@@ -20,7 +20,7 @@ def test_motif_search_singleend():
 
 @pytest.mark.pairedend
 def test_motif_search_pairedend():
-    assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA.fa'))
+    assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_memechip',  'ENCSR729LGA.fa'))
     assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_memechip', 'index.html'))
     peak_file_ENCSR729LGA= test_output_path + 'ENCSR729LGA.600.narrowPeak'
     assert os.path.exists(peak_file_ENCSR729LGA)
diff --git a/workflow/tests/test_xcor.py b/workflow/tests/test_xcor.py
index b2aeb81f0da755234ceda4d8009fba3d2c33e50d..e00f4f451ca5cefb786a6952abd54d7bf21f5805 100644
--- a/workflow/tests/test_xcor.py
+++ b/workflow/tests/test_xcor.py
@@ -9,20 +9,21 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
 
 
 @pytest.mark.singleend
-def test_map_qc_singleend():
+<<<<<<< HEAD
+def test_cross_singleend():
     assert os.path.exists(os.path.join(test_output_path, 'ENCFF833BLU.cc.plot.pdf'))
     qc_file = os.path.join(test_output_path,"ENCFF833BLU.cc.qc")
     df_xcor = pd.read_csv(qc_file, sep="\t", header=None)
     assert df_xcor[2].iloc[0] == '190,200,210'
     assert df_xcor[8].iloc[0] == 1.025906
-    assert df_xcor[9].iloc[0] == 1.139671
+    assert round(df_xcor[9].iloc[0], 6) == 1.139671
 
 
 @pytest.mark.pairedend
-def test_map_qc_pairedend():
+def test_cross_pairedend():
     assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.cc.plot.pdf'))
     qc_file = os.path.join(test_output_path,"ENCLB568IYX.cc.qc")
     df_xcor = pd.read_csv(qc_file, sep="\t", header=None)
     assert df_xcor[2].iloc[0] == '210,220,475'
-    assert df_xcor[8].iloc[0] == 1.062032
+    assert round(df_xcor[8].iloc[0],6) == 1.062032
     assert df_xcor[9].iloc[0] == 3.737722