allow to modify env on xhr mock requests