test: add nontrivial test for restore --accumulate.