Refactor and added tests
adding test nextImage method  for slidehow module