Effects of sample variance on hypothesis testing