NK is a sovereign state with all the rights to do nuclear tests, with nor more nor less rights than the other states having nuclears. Well, maybe some more rights of some of them since at least NK didn't take military actions against other sovereign states.