Return to "/" if there isn't an HTTP_REFERER
Remove unused import
Add some tests against the view