Add invalid proxy ticket test. #3857