The test introduced in this commit is intended to serve as a regression test for the status quo. See gh-23985