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.
Merge branch 'feature/9442_for_valgrind_jobs' into develop