Tests for django authentication