modify testing utility for Django 1.7