Fix and test config part of elasticio.