Made the tests run with Django 1.6.X.

The tests still don't work with Django 1.7 though.