verify metadata saved by publish in tests.