Test case for issue #969