Pakistan successfully tests cruise missile