added state tests