Test case for #2801