Freeze global variables; fixes 8 tests.