Goodness-Of-Fit Tests For Dirichlet Distributions With Applications