changed testing environment, added state extraction