North and South Korea tested ballistic missiles hours apart Wednesday in a display of military might that is sure to exacerbate tensions between the rivals.