test case for #1848