On the use of C-stat in testing models for X-ray spectra