Test for state preservation and restoration without storyboard