write test case for model setting