update elasticsearch unit tests