That makes sense to me.  One other question: is it possible that add_create_block never gets called in the function?  This seems possible if 'open_cases' and 'subcases' are not in actions in the function create_casexml_2.  In the case that add_create_block never is called, I would omit the assertion because nothing has been autoset, right?