add test for issue #6