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