Fix leaked/changed global state in the test suite.