Hypothesis Tests for Goodness of Fit