added parsing config from json and make test for it