Regression test for #546

Fix for #546 is pending.