Why subscription expirations notification can be wrong: Apple’s store code doesn’t support family sharing.

Link. And there is no way to test the correct code. (I suspect every “family” or “child” thing Apple does is hard to test — even by Apple.)