add test for #8614
Merge pull request #8922 from terminalmage/tests

add test for #8614