We have measured the optical response of prototype detectors for SAFARI, the far-infrared imaging spectrometer for the SPICA satellite. SAFARI's three bolometer arrays, coupled with a Fourier transform spectrometer, will provide images of a 2'x2' field of view with spectral information over the wavelength range 34-210 mu m. Each horn-coupled bolometer consists of a transition edge sensor (TES), with a transition temperature close to 100 mK, and a thin-film Ta absorber on a thermally-isolated silicon nitride membrane. SAFARI requires extremely sensitive detectors (NEP similar to 2x10(-19) W/), with correspondingly low saturation powers (similar to 5 fW), to take advantage of SPICA's cooled optics. To meet the challenge of testing such sensitive detectors we have constructed an ultra-low background test facility based on a cryogen-free high-capacity dilution refrigerator, paying careful attention to stray-light exclusion, shielding, and vibration isolation. For optical measurements the system contains internal cold (3-30 K) and hot (similar to 300 K) black-body calibration sources, as well as a light pipe for external illumination. We discuss our measurements of high optical efficiency in prototype SAFARI detectors and describe recent improvements to the test facility that will enable us to test the full SAFARI focal-plane arrays.