Test fixes to run on Django 1.7.