Tests for #22325