Add test for #18908

I'm not sure, maybe someone who knows it could comment on it?