add test for #378