Fixed django.contrib.auth tests

Found two bugs in my application:

1. If any of my middleware works with session, test_session_not_accessed fails.
2. (not a bug really) I use jinja in my project and form.as_ul returns method object. If you can change {{form.as_ul}} to {{form}} tests will also work with jinja2.