added another spec to verify to_metadata