Test if index is deleted when image is deleted