fix elasticsearch unit tests