This tests tests the fix in the previous commit b9a7445, covering the issue noted in issue #1037.
b9a7445