add unit test for fsm, finish INIT state