Electron beam test of key elements of the laser-based calibration system for the muon g-2 experiment