Previous tests had preceded Chinese President Xi Jinping’s state visit to Seoul, and were seen by some analysts as a show of pique at his decision to make Seoul rather than Pyongyang his first stop on the peninsula.