Check that the transition callback only happens if there is a state change