add test for #32
fix #32