Issue #1106: Add a test
Fix #1106