Test code for dendrogram