Fix compile warnings for tests/artifact/randname.
Merge pull request #342 from myshkin/restruct

Fix compile warnings for tests/artifact/randname.