Both Koreas test ballistic missiles