refactor('stateTransition'): set\get data on state test