New tests and bugfixing in URIPolicy resources