Default metadata should be an empty hash, not nil