North Korea tests missile hours before South Korea launches new submarine