[CLI-13] Updated code and test to work with the new config.js