Add test for issue #9446.