Add types for statistical test results
Convert Chi2 test to new API