test for #1850