updated tests for random centroid generator