The IMF has cut global growth projections, as the world economy faces a "major test from the outbreak of war in the Middle East."