Unit test for #1261

This test will fail until PR #1261 is merged.