Test case for issue #355