testing scope of variables