added state checking test