assert on Session#restore's return value