fix lightcurve test