added differentiation for the resource type, made testcase more flexible with use of regex patterns