test checking for sate existence