testing summary statistic functions