test state machin helper model implement state machin helper 