Added test for resource type