Add regression test for #14244.

Special thanks to @programcsharp

[skip validator]
Merge pull request #15425 from twbs/regression-test-14244

Add regression test for #14244.