Issue #1748: Add a test
Fix #1748