Fix for lightcurve tests on build server

Small attempt at a fix so more of the lightcurve tests pass on the build server.