Comparison of calculated and measured wavelengths of resonance transitions in He-like ions for Z = 16-39