Goodness of fit by Neyman-Pearson testing