segment tests into unit and integration. changed config to json format