Add basic unit testing for cleanPhotos