Add reproduction demo for issue #347