Added tests for CSRF model.