Ultraviolet Coronagraph Spectrometer for the Solar and Heliospheric Observatory: optical testings