As the title already says, it will not succeed:
name="{\"text\":\"Test\"}"
and
name=Test
will not find anything, even when summoning an entity with that exact value for CustomName
, or a player with that name is online.
Linked issues
is duplicated by 6
1 more links
It seems like summoning entities also requires custom names to be JSON compliant, but this makes no sense, and additionally does not find entities by name at all.