An optical device having one or more optical components is disclosed. A waveguide
extends from an optical component to a testing port configured to receive a light
signal from a position over the optical device and to insert the light signal into
the waveguide. In some instances, the testing port is configured to receive a light
signal from the waveguide and to direct the light signal to a location over the
optical device. The optical device can be positioned on a wafer before being separated
from the wafer. The waveguide can extend from an optical component over the perimeter
of the optical device such that the testing ports are located outside the perimeter
of the optical device.