another refinement for the test of rmultinom