About the undefined exceptions, it should rather do a manual catch of the exception then, and check if it's either of the two it can be.

Now just about any exception would work, -- and I do think that the URL should still be in the code. Now it'll be very hard to actually find it when looking through the test.