Then everybody will do it secretly. It's only a travesty when someone starts it; other people have the right to respond to parity with their own.
To be clear, I'm not objecting to the weapons existence. I'm objecting to the tests, which are potentially worse than above-ground nuclear testing. The kessler syndrome, if realized, would permanently destroy our ability to deploy, access, and use space resources.
So the first, the US, was a travesty, but everyone else is legitimate self-defense?