add test case.

state log test.