Removed tests for unnecessary functions in views.py