add test for checking we can execute a block with local passing referencing other locals