Ensure that generated-code-dependency tests use locals.

Some of these tests were sharing globals