Improve testing around django-sudo to avoid dealing with cookies