fix issue #203
add test for issue #203