Test for #1646