Adding tests for currentSlide method and fixing the nextSlide