Added test code for slides.py