Widgets config loader reworked with tests