Test indexer tool + many bugfixes in ElasticsearchWriter