testsuite: Add test for #4208

Closes #4208