Simulate codeblock node modification testcases