new development on test lightcurve fitting