Test for #2958