fix django 1.7 compatibility in test_runner