Partials retaining reference to previously defined local

Anybody got an idea how I can prevent this behavior in my tests? I ahve tests that should be failing due to missing locals, but they don't fail, since earlier tests have called the partial with locals.