Adjust unit tests for bad URIs