first add config and its unit test