Replace one usage of Blocks with GetScriptBlocks and add tests