Improved tests for django authentication