Fix tests on Mac builders

Comparing URIs in /tmp was failing because of symlinks.