add restore test for es6