Issue #1623: Add a test
Fix #1623