This isn't my original problem, but I'm posting a simplified version and then I'll try to see if I can apply it myself to my original problem. (yay for self-learning)
Suppose I have a sample and I want to test if the data has been drawn from a normal distribution, but $\mu$ and $\sigma$ are unknown. How am I supposed to compute the expected number of counts in each bin if I don't know these parameters? [and also, which bins should I use, since $\mu$ can stretch anywhere from $-\infty$ to $\infty$] I was thinking maybe we could use the MLE, but that seems bad because I think it will lead to an artificially low test statistic [because of something along the lines of "MLE is computed from your data so the fit would be artificially better"].