Improve dealing with errors
Little typo fix
Start testing ElasticSearchProvider