Added a url stream handler used for tests.