unit tests for mean, nanmean, and nanstd