Properties of the ionized CGM and IGM: Tests for galaxy formation models from the Sunyaev-Zel'dovich effect