Adding a test for #22025.