Testing the Distribution of Categorical Data