Create ES Client for JUnit tests in temporary directory not in actual dir. It avoid problems with deleting this directory on NFS mounted drives e.g. Jenkin's workspace can be mounted to NFS and causes problems with deleting such dir.