add test for #495