test state update is added