Unit tests

Uni tests
Preparation to load configuration from ES index