changing structure of config file and adding test