add getSettings method, fix tests, consume config.json instead of config.js