Fixed tests on Django 1.7.x