Add new required middleware to make tests pass on Django 1.7