Issue #1814: Add a test
Fix #1814