added elasticsearch api tests