Studying high redshift galaxy clusters with the ESO distant cluster survey