Test case for resource with nested resource.