N. Korea warns of nuclear and rocket tests