Iran said on Wednesday it had tested the new ballistic missile but said it did not breach a nuclear deal reached with six major powers in 2015 or a U.N. Security Council resolution that endorsed the accord.