fix test on use_elastic