Test case for issue #351.