Fixed processing last_state_of unit test