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

https://jira.media.berkeley.edu/jira/browse/CLC-1641