Test cases for Centroid