Finished test_redirect
Fixed test_login_required