Chi-Square test of a sample

Not a direct answer, but just in case, this e-handbook page explains quite clearly the steps involved when performing a Chi-Square Goodness-of-Fit Test, which should be useful before using the ChisqTest function from HypothesisTests.jl.