Fix test for resource['format']