variable scope tests