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).