Add test for restore