Method and apparatus for calibrating a laser wavelength control mechanism