test proxy added and redirect refactor