Fixed tests so they run under Django 1.7