A test of the interacting boson approximation using electron scattering