We need to simulate the application being terminated by the OS whilst it is in the background. To do so, perform the following steps exactly:
1. Run the app in the Simulator by pressing "Run" in xcode
2. Put the app into the background by pressing the Home button
3. Stop the app by pressing "Stop" in xcode
The above should trigger the operation of the preservation routines in your app assuming you have set it up properly of course.
To test the restoration process, simply Run the app again. You can do this in xcode or just click the app icon in the simulator. When the app is running again, it should, assuming things are set up properly, trigger the relevant restoration routines in the app and restore the app to its previous state.
Note: an app's preserved state is deleted if the user force quite the app, i.e. don't use the multi-tasking bar to kill the app to test preservation and restoration.