Added test to reproduce issue #17166