close and add test for #259