fixed unitests make
removed duplicated config check
coverage tests for config related functions