Finishing tests for csrf middleware