Improve assertions when creating an ExpectedManifest.