North Korea has right to test weapons given hostile policies- Pyongyang's U.N. envoy