fixed restore test case