Add test for issue 11310.