Add test for dump/restore