add test case for config model