Test of iOS state preservation