Add tests for ::restore()