Testing the Fit of a Parametric Function