write component test for elastic search metadata index.
factored out properties reader to utitlities.
uncommitted minor changes
fix merge