testsuite: Add passing test for #4107
testsuite: Make main fn public