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.
Anti-satellite weapon tests? Only twice. Once in 1985, which was internationally condemned and widely considered a mistake, and once operationally in 2008 to destroy a failed satellite about to re-enter with a full tank of toxic fuel (the debris from this immediately entered the atmosphere).