Added test for state_history.