test blocks and global vars