add test for #313