A method for testing the assumption of phylogenetic independence in comparative data