incorporate changes from code review
- remove extraneous test
- clarify logging in views.py