unhoisted var in test and example