replicate commands for elastic and tests