setStates method tested.