Fix centroid test