forgot test for resource.name throwing exception