add state object test case