edit tests.py for redirects