add config.json and test code