Thank you, you helped me understand the problem.
Tell me why everything works like this:
┖╴Node2D
┖╴Area2D
┠╴test_sprite
┖╴test_collision
That's how the script Area2D breaks:
┖╴Node2D
┠╴ColorRect #Background
┖╴Area2D
┠╴test_sprite
┖╴test_collision
How can I fix this so that I can add other nodes and the script Area2D doesn't break?