Use URI factory in tests.