add test for #308