changed test to match spec

Our-vars are only available in the block where they are created.
added tests for RT #100560, #102876 and #117083