sapply tests