tests for parent for resource.