Add dump and restore test case.