Issue #378: Add a test
Fix #378