diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f837afab23a61ea01a5da6476a188d88f06128e8..50232caa0c3f320d18320a44f3d77095c02928b2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -81,11 +81,12 @@ stages:
     - apt install -y inkscape
     - pip install -U Pillow
     - pip install -e ./
+    - cd tests
 #    - apt install -y swig # build-essential python-dev swig python-pygame # This is for swig. Remove when you go to a conda build system (and see what happens).
 #    - pip install -U -r ../02465students/requirements_pip.txt  --no-cache --upgrade
 #    - pip install -U -r ../02465students/requirements_conda.txt  --no-cache --upgrade
 #    - cd ../02465public/pythontools/tests
-#    - xvfb-run -s "-screen 0 1400x900x24" python test_student_code.py
+    - xvfb-run -s "-screen 0 1400x900x24" python test_slider.py
 
 
 test_39:
@@ -110,9 +111,10 @@ pages:
     - apt install -y python-opengl xvfb # Virtual framebuffer for GL stuff.
     - pwd
     - ls
-#    - mkdir public
-    - cp tests/expected/* public/expected
-    - cp tests/test_images/* public/test_images
+    - cd tests
+    - xvfb-run -s "-screen 0 1400x900x24" python test_slider.py
+    - cp tests/expected public/expected -rf
+    - cp tests/test_images public/test_images -rf
     - cat public/index.html
 #    - apt install -y python3-sphinx
 #    - echo "hello" > public/index.html
diff --git a/src/slider/slide.py b/src/slider/slide.py
index 5715c5871fed5cd48d4fa73b218fb1438a11e415..d2ab9bbd465740e558ba79cc4abdf4ba4377d239 100644
--- a/src/slider/slide.py
+++ b/src/slider/slide.py
@@ -187,7 +187,8 @@ def set_svg_background_images(lecture_tex, verbose=False,
         for v in glob.glob(SVG_OSVG_DIR + "/x_do_not_edit*.pdf"):
             # if not v.endswith("png"):
             os.remove(v)
-
+        for f in glob.glob(lecture_tex[:-4] + '_NO_SVGS*'):
+            os.remove(f)
 
         if os.path.exists(DNE):
             for v in glob.glob(DNE + "/*"):