US President Donald Trump warned on Sunday that North Korea's Kim Jong Un had "everything" to lose through hostility towards the United States, after Pyongyang said it had carried out a major new weapons test."Kim Jong Un is too smart and has far too much to lose, everything actually, if he acts in a hostile way," Trump tweeted in response to the unspecified test at the Sohae space launch centre.The announcement of Saturday's test came just hours after Trump said he would be "surprised" by any hostile action from the North, emphasising his "very good relationship" with Kim.Trump and Kim engaged in months of mutual insults and threats of devastation in 2017, sending tensions soaring before a diplomatic rapprochement the following year.The pair have met three times since June 2018, but with little progress towards denuclearisation. Pyongyang has set Washington a December 31 deadline to make new concessions to kickstart stalled talks."North Korea, under the leadership of Kim Jong Un, has tremendous economic potential, but it must denuclearise as promised," Trump tweeted."NATO, China, Russia, Japan, and the entire world is unified on this issue!"Situation on 'Korean peninsula is grave'Writing that Kim had "signed a strong Denuclearization Agreement" at their June 2018 summit in Singapore," Trump warned: "He does not want to void his special relationship with the President of the United States or interfere with the U.S. Presidential Election in November."Separately, interviewed on the CBS TV news programme Face the Nation, US National Security Advisor Robert O'Brien was asked whether North Korea was preparing to restart nuclear tests."I hope not. That would be a mistake on the part of North Korea," O'Brien said."Kim Jong Un promised to denuclearise North Korea," O'Brien said. "And we expect him to live up to the promise he made at the summit in Singapore. And we hope he'll do so."On Saturday, South Korea's President Moon Jae-in spoke by phone with Trump and agreed to maintain dialogue with Pyongyang.The 30-minute talk was the first conversation between Trump and the South Korean leader since they met at the UN General Assembly in New York in September."The two leaders shared an assessment that the current situation on the Korean peninsula is grave," said South Korean presidential spokesperson Ko Min-jung, adding that Trump had requested the call.'Very important test'A spokesperson for North Korea's Academy of National Defence Science said Saturday's "very important test" would have an "important effect" on changing the "strategic position" of North Korea, in a statement carried by the official KCNA news agency.The statement provided no further details on the test.A senior US administration official earlier said Washington had seen reports of a test and was "coordinating closely with allies and partners".Trump indicated that military action was still possible when he was asked about Pyongyang on the sidelines of a NATO summit in Britain last week.North Korea fired back that if the United States used military force, it would take "prompt corresponding actions at any level".UN diplomats fear that the North will resume long-range nuclear or ballistic tests if progress is not made soon in talks with Washington.Sohae, on North Korea's northwest coast, is ostensibly a facility designed for putting satellites into orbit.But Pyongyang has carried out several rocket launches there that were condemned by the US and others as disguised long-range ballistic missile tests.Following the Singapore summit, Trump said Kim had agreed to destroy "a major missile engine testing site", without naming the facility.Kim then agreed to shutter the Sohae site during a summit last year with Moon in Pyongyang as part of trust-building measures.