add regression test for #747