Convert TestGetImagesJSON into several unit tests