add tests for elastic search module