fixes to mi_plan tests