AMBARI-5738 Unit test and refactoring for controllers/main/service/info/config.js part 2. (ababiichuk)