added code which tests categorical variable for phylogenetic signal