add test to cover issue #199