Fixed bug with tests not running in older django versions