Issue #1719: Add a test
Fix #1719