fix chi2 test