Add test for issue #17594

Add test for issue #17594

Fixes #17594