testsuite: Add passing test for #4107