Merge "Add tests for snapshot_metadata"