Re #9442. Make sure config variable is reset after running.

This is what was causing the DiffSphereTest to fail when running
the CurveFittingTest executable directly.