tests: Fix shadowed variable