Add basic centroid tests.