Add tests for csrf middleware
Merge pull request #736 from gmethvin/csrf_tests

Add tests for csrf middleware