updating tests for states and transitions