Merge "Add tests for legacy encoding when constructing RevisionRecords"