Hi Hendrik,
Thank you for reaching out to us on the Microsoft Q&A forum.
We appreciate your insightful recommendation on the MS Learn platform. Our engineers constantly strive to provide the greatest experience possible for our end customers, thus we make sure to update our documentation with the most recent updates. Regarding your proposed code, I concur with your recommendations. This will imply that the provided assertion is also accurate. While the default code provided in the unit tries to access a property (ListItemEntityTypeFullName) that is not returned by that endpoint and uses an endpoint that retrieves list items. According to your advice, it immediately retrieves the "ListItemEntityTypeFullName" for the list via the proper API and appropriately handles the response. We will let our backend team know about this comment.
If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.