TODO: find a test statistic