Phase errors and predicted spectral performance of a prototype undulator