Added test cases to ImageGalleryPlugin