working config file loading plus some tests