added new tests (empty resourceType special case)