Test: regression test for issue #1221.