Add test for #8860