Issue #1743: Add a test
Fix #1743