Fix #1384
Issue #1384: Add a test