add getStates tests