Update test cases to use local CBN variables

Previously, these test cases tried to access and assess global
variables. As global variables are now not supported, some behavior has
also changed.
Merge pull request #1600 from ellensi/RecordedTestCasesUpdate

Update for recorded test cases