Goodness of fit test statistic