Bootstrapping modified goodness-of-fit statistics with estimated parameters