Add unittest for issue 13809
Merge pull request #1055 from 9rnsr/fix13809

Add unittest for issue 13809