Fix tests and add older django versions