tests: Add testcase for nested blocks