format_stats.htest function

Format hypothesis test statistics