add test for #6