[CLC-1641] Small typo leading to scope leakage through cache. Adding a test to guard against it
Merge pull request #932 from yuhunglin/CLC-1641

[CLC-1641] Small typo leading to scope leakage through cache. Adding a test to guard against it