PR #3679 provides a test illustrating the issue. Issue originally reported [here](https://github.com/SimpleITK/SimpleITK/issues/1728).