Add test for invalid redirects