Test case for #1829