pass corr method to cor.test