fix assertions with uppercase domains + proxy_idps

and a test!