Added test case 22775

As shortly discussed on Twitter.

I looked at another PR and tried to follow the same format.