testLabels is a data frame now, so nrow() instead of length()