test case for issue #9
Fixed issue #9