Variable reference resolution tests.