Testing elastic search APIs