test for homogeneity