added test for clustering