test restruct