add tests to check for resource_locator as array, fix schema to accommodate.