image segmentation related tests