Add test for issue 18343