A wafer includes multiple optical devices. One of the devices includes a waveguide that terminates at a facet that is included in a testing port. Light is injected from a light source into the waveguide through the facet without being reflected between exiting from the light source and entering the facet. The devices are separated from the wafer after the light is injected into the waveguide.