add regression coverage for #3221 [closes #3223]