add test case for issue #8