Increased views.py test coverage