Imperative codeblock testcase