In the Yuan play
灰阑记 the child goes to the woman who will not pull him out of the circle, who is his real mother. Brecht turns the test around: the judge gives the boy to the servant girl Grusha, who saved and raised him, not to the governor's wife who bore him, because a child belongs to whoever is good for him.