add utest for config check