test savedinstancestate