N Korea warned over nuclear test