added option to create config json
added tests for config.json creation