added code to test if I can detect 301 redirects