Fix some tests that have global symbols.