Test case for resource with nested resources.