Test getPwState method