Test variable lookup