Add a test case for the PR17748 crash