Fix incorrect tests from redirect security fixes.