Better test for URIs

Updated the testing for an URI within the results.