Fixed issue where tests would not run in never versions of Django