clustering with test (3 clust)