add regression test for #278