Add legacy test conversion script.
Merge pull request #1287 '[RFC] Add legacy test conversion script.'