added tests for dump/restore