Fix issue with metadata for randomly generated test cases.