Fix test: making vars local