Buffed the tests.py file to check that tests redirect the user to the correct place